elf: Ignore LD_LIBRARY_PATH and debug env var for setuid for static
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 6 Nov 2023 20:25:49 +0000 (17:25 -0300)
committerArnaud Rebillout <arnaudr@debian.org>
Wed, 27 May 2026 04:49:44 +0000 (11:49 +0700)
commit4a0cdc3e9d67b8eb796c0d98d60ce49bf9cc9dbc
tree35da164b8d5711e2d1f5f58e1025559a61126dc6
parent46cedec28dd1d0f8a7a50947d5ec80979954cfc6
elf: Ignore LD_LIBRARY_PATH and debug env var for setuid for static

It mimics the ld.so behavior.

Checked on x86_64-linux-gnu.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
(cherry picked from commit 5451fa962cd0a90a0e2ec1d8910a559ace02bba0)

Gbp-Pq: Topic any
Gbp-Pq: Name local-CVE-2025-4802-3.diff
elf/dl-support.c